<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--JSTL core tag need to add jstl 1.2 jar to lib-->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head><title>Struts 1 Training Materials</title>
</head>

<body>
<c:set var="root" value="${pageContext.request.contextPath}"/>
<div align="center">
    <center>
        <table border="1" cellspacing="1" width="400">
            <tr>
                <td width="390"><font size="4"><b>Struts 1 Architecture </b></font></td>
            </tr>
            <tr>
                <td width="384">
                    <ul>
                        <li>
                            <a href="#">Struts Components</a>
                            <br>
                             It uses and extends the Java Servlet API to encourage developers to  adopt an MVC architecture. Struts framework provides three key components:
                            <br>
                            - A request handler provided by the application developer that is used to  mapped to a particular URI.
                            <br>
                            - A response handler which is used to transfer the control to another resource which will be responsible for completing the response.
                            <br>
                            - A tag library which helps developers to create the interactive form based applications with server pages.
                        </li>

                        <li>
                            <a href="#">Struts Architecture</a>
                            <br>
                            - The Struts framework is composed of approximately 300 classes and interfaces which are organized in about 12 top level packages.
                            <br>
                            - <b>Struts Controller Components : </b> Whenever a user request for something, then the request is handled by the Struts Action Servlet. When the ActionServlet receives the request, it intercepts the URL and based on the Struts Configuration files, it gives the handling of the request to the Action class.
                            <br>
                            - <b>Struts View Components : </b>The view components are responsible for presenting information to the users and accepting the input from them.Mostly we use the Java Server Pages (JSP) for the view presentation.
                            <br>
                            - <b>Struts model component : </b>The model components provides a model of the business logic behind a Struts program.Model components are generally a java class.
                        </li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td>
                    <a href="${root}/index.jsp">HOME</a>
                </td>
            </tr>
        </table>
    </center>
</div>
</body>
</html>